<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AddColumnPopDateToCouponPackage extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('coupon_package', function (Blueprint $table) {
            $table->string('popDate')->default('1,2,3,4,5,6,7')->comment('小程序弹窗日期 1-7表示周一到周末')
                  ->after('miniAdvPopSwitch');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('coupon_package', function (Blueprint $table) {
            $table->dropColumn('popDate');
        });
    }
}
